package com.donn.securitycontrolplatform.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dahuatech.icc.exception.ClientException;
import com.donn.securitycontrolplatform.common.Result;
import com.donn.securitycontrolplatform.expection.BusinessException;
import com.donn.securitycontrolplatform.user.entity.DaHuaPerson;
import com.donn.securitycontrolplatform.user.entity.TUser;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author zhenglixiang
 * @since 2022-06-10
 */
public interface ITUserService extends IService<TUser> {

    void deleteMj(Integer userId) throws BusinessException, ClientException;

    Result update(TUser user);

    Result selectUserList(TUser user, Page page);

    Result getUserById(Long userId);

    Result deleteUser(Long userId);

    //    根据personId添加人员到门禁
    void authByPersonId(Long personId, Long quantumId);

    Long synchronizeAdd(String name, String idno, String cardNumber) throws BusinessException, ClientException;

    Result synchronizeDelete(Integer userId) throws BusinessException, ClientException;

    Result synchronizeUpdate(DaHuaPerson person) throws BusinessException, ClientException;

}
